//
//  DataBaseTool.h
//  OurMenu
//
//  Created by 尹坤 on 15/10/13.
//  Copyright © 2015年 尹坤. All rights reserved.
//

#import <Foundation/Foundation.h>
@class FMDatabase;
@class DishesMadels;
@class Steps;
@interface DataBaseTool : NSObject
{
    FMDatabase *db;
}
//
- (void)creatDishesTable;
- (BOOL)insertDishesToTable:(DishesMadels *)dishes;
- (BOOL)isExistsWithName:(NSString *)name;
- (BOOL)deleteDishes:(NSString *)name;
- (NSMutableArray *)selectDishes;
//做菜步骤
- (void)creatSteps;
- (BOOL)insertStepsToTable:(Steps *)step;
- (BOOL)isExistsWithStepsName:(NSString *)name;
- (BOOL)deleteSteps:(NSString *)title;
- (NSMutableArray *)selectSteps:(NSString *)name;
@end
